package com.myway.dao;

import com.myway.dto.beans.PageQuery;
import com.myway.pojo.SysPortalNews;
import com.myway.pojo.SysPortalNewsWithBLOBs;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

public interface SysPortalNewsMapper {
    int deleteByPrimaryKey(Long id);

    int insert(SysPortalNewsWithBLOBs record);

    int insertSelective(SysPortalNewsWithBLOBs record);

    SysPortalNewsWithBLOBs selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(SysPortalNewsWithBLOBs record);

    int updateByPrimaryKeyWithBLOBs(SysPortalNewsWithBLOBs record);

    int updateByPrimaryKey(SysPortalNews record);

    List<SysPortalNews> selectByType(String type);

    int count(String type);

    List<SysPortalNews> page(@Param("page") PageQuery page, @Param("type") String type);

    SysPortalNews prePage(@Param("operate_time") Date operateTime, @Param("type") String type);

    SysPortalNews nextPage(@Param("operate_time") Date operateTime, @Param("type") String type);
}